0 CpxTRS
↳1 TrsToWeightedTrsProof (BOTH BOUNDS(ID, ID), 0 ms)
↳2 CpxWeightedTrs
↳3 TypeInferenceProof (BOTH BOUNDS(ID, ID), 0 ms)
↳4 CpxTypedWeightedTrs
↳5 CompletionProof (UPPER BOUND(ID), 0 ms)
↳6 CpxTypedWeightedCompleteTrs
↳7 NarrowingProof (BOTH BOUNDS(ID, ID), 0 ms)
↳8 CpxTypedWeightedCompleteTrs
↳9 CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID), 0 ms)
↳10 CpxRNTS
↳11 SimplificationProof (BOTH BOUNDS(ID, ID), 0 ms)
↳12 CpxRNTS
↳13 CpxRntsAnalysisOrderProof (BOTH BOUNDS(ID, ID), 0 ms)
↳14 CpxRNTS
↳15 IntTrsBoundProof (UPPER BOUND(ID), 2856 ms)
↳16 CpxRNTS
↳17 IntTrsBoundProof (UPPER BOUND(ID), 993 ms)
↳18 CpxRNTS
↳19 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳20 CpxRNTS
↳21 IntTrsBoundProof (UPPER BOUND(ID), 112 ms)
↳22 CpxRNTS
↳23 IntTrsBoundProof (UPPER BOUND(ID), 7 ms)
↳24 CpxRNTS
↳25 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳26 CpxRNTS
↳27 IntTrsBoundProof (UPPER BOUND(ID), 142 ms)
↳28 CpxRNTS
↳29 IntTrsBoundProof (UPPER BOUND(ID), 26 ms)
↳30 CpxRNTS
↳31 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳32 CpxRNTS
↳33 IntTrsBoundProof (UPPER BOUND(ID), 175 ms)
↳34 CpxRNTS
↳35 IntTrsBoundProof (UPPER BOUND(ID), 5 ms)
↳36 CpxRNTS
↳37 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳38 CpxRNTS
↳39 IntTrsBoundProof (UPPER BOUND(ID), 108 ms)
↳40 CpxRNTS
↳41 IntTrsBoundProof (UPPER BOUND(ID), 64 ms)
↳42 CpxRNTS
↳43 FinalProof (⇔, 0 ms)
↳44 BOUNDS(1, n^1)
nonZero(0) → false
nonZero(s(x)) → true
p(0) → 0
p(s(x)) → x
id_inc(x) → x
id_inc(x) → s(x)
random(x) → rand(x, 0)
rand(x, y) → if(nonZero(x), x, y)
if(false, x, y) → y
if(true, x, y) → rand(p(x), id_inc(y))
nonZero(0) → false [1]
nonZero(s(x)) → true [1]
p(0) → 0 [1]
p(s(x)) → x [1]
id_inc(x) → x [1]
id_inc(x) → s(x) [1]
random(x) → rand(x, 0) [1]
rand(x, y) → if(nonZero(x), x, y) [1]
if(false, x, y) → y [1]
if(true, x, y) → rand(p(x), id_inc(y)) [1]
nonZero(0) → false [1]
nonZero(s(x)) → true [1]
p(0) → 0 [1]
p(s(x)) → x [1]
id_inc(x) → x [1]
id_inc(x) → s(x) [1]
random(x) → rand(x, 0) [1]
rand(x, y) → if(nonZero(x), x, y) [1]
if(false, x, y) → y [1]
if(true, x, y) → rand(p(x), id_inc(y)) [1]
nonZero :: 0:s → false:true 0 :: 0:s false :: false:true s :: 0:s → 0:s true :: false:true p :: 0:s → 0:s id_inc :: 0:s → 0:s random :: 0:s → 0:s rand :: 0:s → 0:s → 0:s if :: false:true → 0:s → 0:s → 0:s |
(a) The obligation is a constructor system where every type has a constant constructor,
(b) The following defined symbols do not have to be completely defined, as they can never occur inside other defined symbols:
random
rand
if
p
id_inc
nonZero
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
0 => 0
false => 0
true => 1
id_inc(z) -{ 1 }→ x :|: x >= 0, z = x
id_inc(z) -{ 1 }→ 1 + x :|: x >= 0, z = x
if(z, z', z'') -{ 1 }→ y :|: z' = x, z'' = y, x >= 0, y >= 0, z = 0
if(z, z', z'') -{ 3 }→ rand(x'', y) :|: z' = 1 + x'', z'' = y, z = 1, y >= 0, x'' >= 0
if(z, z', z'') -{ 3 }→ rand(x'', 1 + y) :|: z' = 1 + x'', z'' = y, z = 1, y >= 0, x'' >= 0
if(z, z', z'') -{ 3 }→ rand(0, y) :|: z'' = y, z = 1, y >= 0, z' = 0
if(z, z', z'') -{ 3 }→ rand(0, 1 + y) :|: z'' = y, z = 1, y >= 0, z' = 0
nonZero(z) -{ 1 }→ 1 :|: x >= 0, z = 1 + x
nonZero(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ x :|: x >= 0, z = 1 + x
p(z) -{ 1 }→ 0 :|: z = 0
rand(z, z') -{ 2 }→ if(1, 1 + x', y) :|: z = 1 + x', x' >= 0, y >= 0, z' = y
rand(z, z') -{ 2 }→ if(0, 0, y) :|: y >= 0, z = 0, z' = y
random(z) -{ 1 }→ rand(x, 0) :|: x >= 0, z = x
id_inc(z) -{ 1 }→ z :|: z >= 0
id_inc(z) -{ 1 }→ 1 + z :|: z >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z' >= 0, z'' >= 0, z = 0
if(z, z', z'') -{ 3 }→ rand(0, z'') :|: z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 3 }→ rand(0, 1 + z'') :|: z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 3 }→ rand(z' - 1, z'') :|: z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 3 }→ rand(z' - 1, 1 + z'') :|: z = 1, z'' >= 0, z' - 1 >= 0
nonZero(z) -{ 1 }→ 1 :|: z - 1 >= 0
nonZero(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ z - 1 :|: z - 1 >= 0
rand(z, z') -{ 2 }→ if(1, 1 + (z - 1), z') :|: z - 1 >= 0, z' >= 0
rand(z, z') -{ 2 }→ if(0, 0, z') :|: z' >= 0, z = 0
random(z) -{ 1 }→ rand(z, 0) :|: z >= 0
{ if, rand } { nonZero } { id_inc } { p } { random } |
id_inc(z) -{ 1 }→ z :|: z >= 0
id_inc(z) -{ 1 }→ 1 + z :|: z >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z' >= 0, z'' >= 0, z = 0
if(z, z', z'') -{ 3 }→ rand(0, z'') :|: z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 3 }→ rand(0, 1 + z'') :|: z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 3 }→ rand(z' - 1, z'') :|: z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 3 }→ rand(z' - 1, 1 + z'') :|: z = 1, z'' >= 0, z' - 1 >= 0
nonZero(z) -{ 1 }→ 1 :|: z - 1 >= 0
nonZero(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ z - 1 :|: z - 1 >= 0
rand(z, z') -{ 2 }→ if(1, 1 + (z - 1), z') :|: z - 1 >= 0, z' >= 0
rand(z, z') -{ 2 }→ if(0, 0, z') :|: z' >= 0, z = 0
random(z) -{ 1 }→ rand(z, 0) :|: z >= 0
id_inc(z) -{ 1 }→ z :|: z >= 0
id_inc(z) -{ 1 }→ 1 + z :|: z >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z' >= 0, z'' >= 0, z = 0
if(z, z', z'') -{ 3 }→ rand(0, z'') :|: z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 3 }→ rand(0, 1 + z'') :|: z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 3 }→ rand(z' - 1, z'') :|: z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 3 }→ rand(z' - 1, 1 + z'') :|: z = 1, z'' >= 0, z' - 1 >= 0
nonZero(z) -{ 1 }→ 1 :|: z - 1 >= 0
nonZero(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ z - 1 :|: z - 1 >= 0
rand(z, z') -{ 2 }→ if(1, 1 + (z - 1), z') :|: z - 1 >= 0, z' >= 0
rand(z, z') -{ 2 }→ if(0, 0, z') :|: z' >= 0, z = 0
random(z) -{ 1 }→ rand(z, 0) :|: z >= 0
if: runtime: ?, size: O(n1) [1 + z' + z''] rand: runtime: ?, size: O(n1) [1 + z + z'] |
id_inc(z) -{ 1 }→ z :|: z >= 0
id_inc(z) -{ 1 }→ 1 + z :|: z >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z' >= 0, z'' >= 0, z = 0
if(z, z', z'') -{ 3 }→ rand(0, z'') :|: z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 3 }→ rand(0, 1 + z'') :|: z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 3 }→ rand(z' - 1, z'') :|: z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 3 }→ rand(z' - 1, 1 + z'') :|: z = 1, z'' >= 0, z' - 1 >= 0
nonZero(z) -{ 1 }→ 1 :|: z - 1 >= 0
nonZero(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ z - 1 :|: z - 1 >= 0
rand(z, z') -{ 2 }→ if(1, 1 + (z - 1), z') :|: z - 1 >= 0, z' >= 0
rand(z, z') -{ 2 }→ if(0, 0, z') :|: z' >= 0, z = 0
random(z) -{ 1 }→ rand(z, 0) :|: z >= 0
if: runtime: O(n1) [11 + 5·z'], size: O(n1) [1 + z' + z''] rand: runtime: O(n1) [13 + 5·z], size: O(n1) [1 + z + z'] |
id_inc(z) -{ 1 }→ z :|: z >= 0
id_inc(z) -{ 1 }→ 1 + z :|: z >= 0
if(z, z', z'') -{ 16 }→ s1 :|: s1 >= 0, s1 <= 1 * 0 + 1 * z'' + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 16 }→ s2 :|: s2 >= 0, s2 <= 1 * 0 + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 11 + 5·z' }→ s3 :|: s3 >= 0, s3 <= 1 * (z' - 1) + 1 * z'' + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 11 + 5·z' }→ s4 :|: s4 >= 0, s4 <= 1 * (z' - 1) + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z' >= 0, z'' >= 0, z = 0
nonZero(z) -{ 1 }→ 1 :|: z - 1 >= 0
nonZero(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ z - 1 :|: z - 1 >= 0
rand(z, z') -{ 13 }→ s' :|: s' >= 0, s' <= 1 * z' + 1 + 1 * 0, z' >= 0, z = 0
rand(z, z') -{ 13 + 5·z }→ s'' :|: s'' >= 0, s'' <= 1 * z' + 1 + 1 * (1 + (z - 1)), z - 1 >= 0, z' >= 0
random(z) -{ 14 + 5·z }→ s :|: s >= 0, s <= 1 * z + 1 * 0 + 1, z >= 0
if: runtime: O(n1) [11 + 5·z'], size: O(n1) [1 + z' + z''] rand: runtime: O(n1) [13 + 5·z], size: O(n1) [1 + z + z'] |
id_inc(z) -{ 1 }→ z :|: z >= 0
id_inc(z) -{ 1 }→ 1 + z :|: z >= 0
if(z, z', z'') -{ 16 }→ s1 :|: s1 >= 0, s1 <= 1 * 0 + 1 * z'' + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 16 }→ s2 :|: s2 >= 0, s2 <= 1 * 0 + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 11 + 5·z' }→ s3 :|: s3 >= 0, s3 <= 1 * (z' - 1) + 1 * z'' + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 11 + 5·z' }→ s4 :|: s4 >= 0, s4 <= 1 * (z' - 1) + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z' >= 0, z'' >= 0, z = 0
nonZero(z) -{ 1 }→ 1 :|: z - 1 >= 0
nonZero(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ z - 1 :|: z - 1 >= 0
rand(z, z') -{ 13 }→ s' :|: s' >= 0, s' <= 1 * z' + 1 + 1 * 0, z' >= 0, z = 0
rand(z, z') -{ 13 + 5·z }→ s'' :|: s'' >= 0, s'' <= 1 * z' + 1 + 1 * (1 + (z - 1)), z - 1 >= 0, z' >= 0
random(z) -{ 14 + 5·z }→ s :|: s >= 0, s <= 1 * z + 1 * 0 + 1, z >= 0
if: runtime: O(n1) [11 + 5·z'], size: O(n1) [1 + z' + z''] rand: runtime: O(n1) [13 + 5·z], size: O(n1) [1 + z + z'] nonZero: runtime: ?, size: O(1) [1] |
id_inc(z) -{ 1 }→ z :|: z >= 0
id_inc(z) -{ 1 }→ 1 + z :|: z >= 0
if(z, z', z'') -{ 16 }→ s1 :|: s1 >= 0, s1 <= 1 * 0 + 1 * z'' + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 16 }→ s2 :|: s2 >= 0, s2 <= 1 * 0 + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 11 + 5·z' }→ s3 :|: s3 >= 0, s3 <= 1 * (z' - 1) + 1 * z'' + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 11 + 5·z' }→ s4 :|: s4 >= 0, s4 <= 1 * (z' - 1) + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z' >= 0, z'' >= 0, z = 0
nonZero(z) -{ 1 }→ 1 :|: z - 1 >= 0
nonZero(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ z - 1 :|: z - 1 >= 0
rand(z, z') -{ 13 }→ s' :|: s' >= 0, s' <= 1 * z' + 1 + 1 * 0, z' >= 0, z = 0
rand(z, z') -{ 13 + 5·z }→ s'' :|: s'' >= 0, s'' <= 1 * z' + 1 + 1 * (1 + (z - 1)), z - 1 >= 0, z' >= 0
random(z) -{ 14 + 5·z }→ s :|: s >= 0, s <= 1 * z + 1 * 0 + 1, z >= 0
if: runtime: O(n1) [11 + 5·z'], size: O(n1) [1 + z' + z''] rand: runtime: O(n1) [13 + 5·z], size: O(n1) [1 + z + z'] nonZero: runtime: O(1) [1], size: O(1) [1] |
id_inc(z) -{ 1 }→ z :|: z >= 0
id_inc(z) -{ 1 }→ 1 + z :|: z >= 0
if(z, z', z'') -{ 16 }→ s1 :|: s1 >= 0, s1 <= 1 * 0 + 1 * z'' + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 16 }→ s2 :|: s2 >= 0, s2 <= 1 * 0 + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 11 + 5·z' }→ s3 :|: s3 >= 0, s3 <= 1 * (z' - 1) + 1 * z'' + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 11 + 5·z' }→ s4 :|: s4 >= 0, s4 <= 1 * (z' - 1) + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z' >= 0, z'' >= 0, z = 0
nonZero(z) -{ 1 }→ 1 :|: z - 1 >= 0
nonZero(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ z - 1 :|: z - 1 >= 0
rand(z, z') -{ 13 }→ s' :|: s' >= 0, s' <= 1 * z' + 1 + 1 * 0, z' >= 0, z = 0
rand(z, z') -{ 13 + 5·z }→ s'' :|: s'' >= 0, s'' <= 1 * z' + 1 + 1 * (1 + (z - 1)), z - 1 >= 0, z' >= 0
random(z) -{ 14 + 5·z }→ s :|: s >= 0, s <= 1 * z + 1 * 0 + 1, z >= 0
if: runtime: O(n1) [11 + 5·z'], size: O(n1) [1 + z' + z''] rand: runtime: O(n1) [13 + 5·z], size: O(n1) [1 + z + z'] nonZero: runtime: O(1) [1], size: O(1) [1] |
id_inc(z) -{ 1 }→ z :|: z >= 0
id_inc(z) -{ 1 }→ 1 + z :|: z >= 0
if(z, z', z'') -{ 16 }→ s1 :|: s1 >= 0, s1 <= 1 * 0 + 1 * z'' + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 16 }→ s2 :|: s2 >= 0, s2 <= 1 * 0 + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 11 + 5·z' }→ s3 :|: s3 >= 0, s3 <= 1 * (z' - 1) + 1 * z'' + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 11 + 5·z' }→ s4 :|: s4 >= 0, s4 <= 1 * (z' - 1) + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z' >= 0, z'' >= 0, z = 0
nonZero(z) -{ 1 }→ 1 :|: z - 1 >= 0
nonZero(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ z - 1 :|: z - 1 >= 0
rand(z, z') -{ 13 }→ s' :|: s' >= 0, s' <= 1 * z' + 1 + 1 * 0, z' >= 0, z = 0
rand(z, z') -{ 13 + 5·z }→ s'' :|: s'' >= 0, s'' <= 1 * z' + 1 + 1 * (1 + (z - 1)), z - 1 >= 0, z' >= 0
random(z) -{ 14 + 5·z }→ s :|: s >= 0, s <= 1 * z + 1 * 0 + 1, z >= 0
if: runtime: O(n1) [11 + 5·z'], size: O(n1) [1 + z' + z''] rand: runtime: O(n1) [13 + 5·z], size: O(n1) [1 + z + z'] nonZero: runtime: O(1) [1], size: O(1) [1] id_inc: runtime: ?, size: O(n1) [1 + z] |
id_inc(z) -{ 1 }→ z :|: z >= 0
id_inc(z) -{ 1 }→ 1 + z :|: z >= 0
if(z, z', z'') -{ 16 }→ s1 :|: s1 >= 0, s1 <= 1 * 0 + 1 * z'' + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 16 }→ s2 :|: s2 >= 0, s2 <= 1 * 0 + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 11 + 5·z' }→ s3 :|: s3 >= 0, s3 <= 1 * (z' - 1) + 1 * z'' + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 11 + 5·z' }→ s4 :|: s4 >= 0, s4 <= 1 * (z' - 1) + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z' >= 0, z'' >= 0, z = 0
nonZero(z) -{ 1 }→ 1 :|: z - 1 >= 0
nonZero(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ z - 1 :|: z - 1 >= 0
rand(z, z') -{ 13 }→ s' :|: s' >= 0, s' <= 1 * z' + 1 + 1 * 0, z' >= 0, z = 0
rand(z, z') -{ 13 + 5·z }→ s'' :|: s'' >= 0, s'' <= 1 * z' + 1 + 1 * (1 + (z - 1)), z - 1 >= 0, z' >= 0
random(z) -{ 14 + 5·z }→ s :|: s >= 0, s <= 1 * z + 1 * 0 + 1, z >= 0
if: runtime: O(n1) [11 + 5·z'], size: O(n1) [1 + z' + z''] rand: runtime: O(n1) [13 + 5·z], size: O(n1) [1 + z + z'] nonZero: runtime: O(1) [1], size: O(1) [1] id_inc: runtime: O(1) [1], size: O(n1) [1 + z] |
id_inc(z) -{ 1 }→ z :|: z >= 0
id_inc(z) -{ 1 }→ 1 + z :|: z >= 0
if(z, z', z'') -{ 16 }→ s1 :|: s1 >= 0, s1 <= 1 * 0 + 1 * z'' + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 16 }→ s2 :|: s2 >= 0, s2 <= 1 * 0 + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 11 + 5·z' }→ s3 :|: s3 >= 0, s3 <= 1 * (z' - 1) + 1 * z'' + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 11 + 5·z' }→ s4 :|: s4 >= 0, s4 <= 1 * (z' - 1) + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z' >= 0, z'' >= 0, z = 0
nonZero(z) -{ 1 }→ 1 :|: z - 1 >= 0
nonZero(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ z - 1 :|: z - 1 >= 0
rand(z, z') -{ 13 }→ s' :|: s' >= 0, s' <= 1 * z' + 1 + 1 * 0, z' >= 0, z = 0
rand(z, z') -{ 13 + 5·z }→ s'' :|: s'' >= 0, s'' <= 1 * z' + 1 + 1 * (1 + (z - 1)), z - 1 >= 0, z' >= 0
random(z) -{ 14 + 5·z }→ s :|: s >= 0, s <= 1 * z + 1 * 0 + 1, z >= 0
if: runtime: O(n1) [11 + 5·z'], size: O(n1) [1 + z' + z''] rand: runtime: O(n1) [13 + 5·z], size: O(n1) [1 + z + z'] nonZero: runtime: O(1) [1], size: O(1) [1] id_inc: runtime: O(1) [1], size: O(n1) [1 + z] |
id_inc(z) -{ 1 }→ z :|: z >= 0
id_inc(z) -{ 1 }→ 1 + z :|: z >= 0
if(z, z', z'') -{ 16 }→ s1 :|: s1 >= 0, s1 <= 1 * 0 + 1 * z'' + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 16 }→ s2 :|: s2 >= 0, s2 <= 1 * 0 + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 11 + 5·z' }→ s3 :|: s3 >= 0, s3 <= 1 * (z' - 1) + 1 * z'' + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 11 + 5·z' }→ s4 :|: s4 >= 0, s4 <= 1 * (z' - 1) + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z' >= 0, z'' >= 0, z = 0
nonZero(z) -{ 1 }→ 1 :|: z - 1 >= 0
nonZero(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ z - 1 :|: z - 1 >= 0
rand(z, z') -{ 13 }→ s' :|: s' >= 0, s' <= 1 * z' + 1 + 1 * 0, z' >= 0, z = 0
rand(z, z') -{ 13 + 5·z }→ s'' :|: s'' >= 0, s'' <= 1 * z' + 1 + 1 * (1 + (z - 1)), z - 1 >= 0, z' >= 0
random(z) -{ 14 + 5·z }→ s :|: s >= 0, s <= 1 * z + 1 * 0 + 1, z >= 0
if: runtime: O(n1) [11 + 5·z'], size: O(n1) [1 + z' + z''] rand: runtime: O(n1) [13 + 5·z], size: O(n1) [1 + z + z'] nonZero: runtime: O(1) [1], size: O(1) [1] id_inc: runtime: O(1) [1], size: O(n1) [1 + z] p: runtime: ?, size: O(n1) [z] |
id_inc(z) -{ 1 }→ z :|: z >= 0
id_inc(z) -{ 1 }→ 1 + z :|: z >= 0
if(z, z', z'') -{ 16 }→ s1 :|: s1 >= 0, s1 <= 1 * 0 + 1 * z'' + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 16 }→ s2 :|: s2 >= 0, s2 <= 1 * 0 + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 11 + 5·z' }→ s3 :|: s3 >= 0, s3 <= 1 * (z' - 1) + 1 * z'' + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 11 + 5·z' }→ s4 :|: s4 >= 0, s4 <= 1 * (z' - 1) + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z' >= 0, z'' >= 0, z = 0
nonZero(z) -{ 1 }→ 1 :|: z - 1 >= 0
nonZero(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ z - 1 :|: z - 1 >= 0
rand(z, z') -{ 13 }→ s' :|: s' >= 0, s' <= 1 * z' + 1 + 1 * 0, z' >= 0, z = 0
rand(z, z') -{ 13 + 5·z }→ s'' :|: s'' >= 0, s'' <= 1 * z' + 1 + 1 * (1 + (z - 1)), z - 1 >= 0, z' >= 0
random(z) -{ 14 + 5·z }→ s :|: s >= 0, s <= 1 * z + 1 * 0 + 1, z >= 0
if: runtime: O(n1) [11 + 5·z'], size: O(n1) [1 + z' + z''] rand: runtime: O(n1) [13 + 5·z], size: O(n1) [1 + z + z'] nonZero: runtime: O(1) [1], size: O(1) [1] id_inc: runtime: O(1) [1], size: O(n1) [1 + z] p: runtime: O(1) [1], size: O(n1) [z] |
id_inc(z) -{ 1 }→ z :|: z >= 0
id_inc(z) -{ 1 }→ 1 + z :|: z >= 0
if(z, z', z'') -{ 16 }→ s1 :|: s1 >= 0, s1 <= 1 * 0 + 1 * z'' + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 16 }→ s2 :|: s2 >= 0, s2 <= 1 * 0 + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 11 + 5·z' }→ s3 :|: s3 >= 0, s3 <= 1 * (z' - 1) + 1 * z'' + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 11 + 5·z' }→ s4 :|: s4 >= 0, s4 <= 1 * (z' - 1) + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z' >= 0, z'' >= 0, z = 0
nonZero(z) -{ 1 }→ 1 :|: z - 1 >= 0
nonZero(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ z - 1 :|: z - 1 >= 0
rand(z, z') -{ 13 }→ s' :|: s' >= 0, s' <= 1 * z' + 1 + 1 * 0, z' >= 0, z = 0
rand(z, z') -{ 13 + 5·z }→ s'' :|: s'' >= 0, s'' <= 1 * z' + 1 + 1 * (1 + (z - 1)), z - 1 >= 0, z' >= 0
random(z) -{ 14 + 5·z }→ s :|: s >= 0, s <= 1 * z + 1 * 0 + 1, z >= 0
if: runtime: O(n1) [11 + 5·z'], size: O(n1) [1 + z' + z''] rand: runtime: O(n1) [13 + 5·z], size: O(n1) [1 + z + z'] nonZero: runtime: O(1) [1], size: O(1) [1] id_inc: runtime: O(1) [1], size: O(n1) [1 + z] p: runtime: O(1) [1], size: O(n1) [z] |
id_inc(z) -{ 1 }→ z :|: z >= 0
id_inc(z) -{ 1 }→ 1 + z :|: z >= 0
if(z, z', z'') -{ 16 }→ s1 :|: s1 >= 0, s1 <= 1 * 0 + 1 * z'' + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 16 }→ s2 :|: s2 >= 0, s2 <= 1 * 0 + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 11 + 5·z' }→ s3 :|: s3 >= 0, s3 <= 1 * (z' - 1) + 1 * z'' + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 11 + 5·z' }→ s4 :|: s4 >= 0, s4 <= 1 * (z' - 1) + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z' >= 0, z'' >= 0, z = 0
nonZero(z) -{ 1 }→ 1 :|: z - 1 >= 0
nonZero(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ z - 1 :|: z - 1 >= 0
rand(z, z') -{ 13 }→ s' :|: s' >= 0, s' <= 1 * z' + 1 + 1 * 0, z' >= 0, z = 0
rand(z, z') -{ 13 + 5·z }→ s'' :|: s'' >= 0, s'' <= 1 * z' + 1 + 1 * (1 + (z - 1)), z - 1 >= 0, z' >= 0
random(z) -{ 14 + 5·z }→ s :|: s >= 0, s <= 1 * z + 1 * 0 + 1, z >= 0
if: runtime: O(n1) [11 + 5·z'], size: O(n1) [1 + z' + z''] rand: runtime: O(n1) [13 + 5·z], size: O(n1) [1 + z + z'] nonZero: runtime: O(1) [1], size: O(1) [1] id_inc: runtime: O(1) [1], size: O(n1) [1 + z] p: runtime: O(1) [1], size: O(n1) [z] random: runtime: ?, size: O(n1) [1 + z] |
id_inc(z) -{ 1 }→ z :|: z >= 0
id_inc(z) -{ 1 }→ 1 + z :|: z >= 0
if(z, z', z'') -{ 16 }→ s1 :|: s1 >= 0, s1 <= 1 * 0 + 1 * z'' + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 16 }→ s2 :|: s2 >= 0, s2 <= 1 * 0 + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' = 0
if(z, z', z'') -{ 11 + 5·z' }→ s3 :|: s3 >= 0, s3 <= 1 * (z' - 1) + 1 * z'' + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 11 + 5·z' }→ s4 :|: s4 >= 0, s4 <= 1 * (z' - 1) + 1 * (1 + z'') + 1, z = 1, z'' >= 0, z' - 1 >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z' >= 0, z'' >= 0, z = 0
nonZero(z) -{ 1 }→ 1 :|: z - 1 >= 0
nonZero(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ 0 :|: z = 0
p(z) -{ 1 }→ z - 1 :|: z - 1 >= 0
rand(z, z') -{ 13 }→ s' :|: s' >= 0, s' <= 1 * z' + 1 + 1 * 0, z' >= 0, z = 0
rand(z, z') -{ 13 + 5·z }→ s'' :|: s'' >= 0, s'' <= 1 * z' + 1 + 1 * (1 + (z - 1)), z - 1 >= 0, z' >= 0
random(z) -{ 14 + 5·z }→ s :|: s >= 0, s <= 1 * z + 1 * 0 + 1, z >= 0
if: runtime: O(n1) [11 + 5·z'], size: O(n1) [1 + z' + z''] rand: runtime: O(n1) [13 + 5·z], size: O(n1) [1 + z + z'] nonZero: runtime: O(1) [1], size: O(1) [1] id_inc: runtime: O(1) [1], size: O(n1) [1 + z] p: runtime: O(1) [1], size: O(n1) [z] random: runtime: O(n1) [14 + 5·z], size: O(n1) [1 + z] |